package com.geekhalo.feed.app;

import com.geekhalo.feed.domain.feed.Feed;
import com.geekhalo.feed.domain.feed.FeedQueryRepository;
import com.geekhalo.lego.annotation.web.AutoRegisterWebController;
import com.geekhalo.lego.core.query.QueryApplicationServiceDefinition;

import java.util.Optional;

@QueryApplicationServiceDefinition(
        repositoryClass = FeedQueryRepository.class,
        masterDataClass = Feed.class
)
@AutoRegisterWebController(name = "feedQuery")
public interface FeedQueryApplication extends CustomFeedQueryApplication{
    Optional<Feed> findById(Long id);
}
